//
//  RegisterViewController.m
//  作业2
//
//  Created by dllo on 16/7/15.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "RegisterViewController.h"
#import "ViewController.h"
#import "LagouImageView.h"
#import "LagouView.h"
@interface RegisterViewController ()
@property (nonatomic, strong) LagouImageView *lagouImageView;
@property (nonatomic, strong) LagouView *inputView;
@property (nonatomic, strong) LagouView *loginView;
@end

@implementation RegisterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor yellowColor];
    // imageview
    self.lagouImageView = [LagouImageView createImageView];
    [self.view addSubview:_lagouImageView];
    //textfield
    self.inputView = [LagouView createViewWithImageName1:@"icon_iphone1@3x.png" imageName2:@"icon_identify1@3x.png" string1:@"请输入手机号" string2:@"请输入验证码" identifyString:@"获取验证码" viewframe:CGRectMake(0, 0, WIDTH - 20, 100) center:CGPointMake(WIDTH / 2, HEIGHT / 2) leftViewColor:[UIColor darkGrayColor] textFieldBackgroundColor:[UIColor darkGrayColor] cursorMove:YES];
    // createViewWithImageName1:@"icon_iphone1@3x.png" imageName2:@"icon_identify1@3x.png" string1:@"请输入手机号" string2:@"请输入验证码"  identifyString:@"获取验证码"
    [_lagouImageView addSubview:_inputView];
    //button
    self.loginView = [LagouView createViewWithString1:@"拉勾用户协议" string2:@"注册" string3:@"返回登录"];
    [_lagouImageView addSubview:_loginView];
    [_loginView.registerButton addTarget:self action:@selector(click2) forControlEvents:UIControlEventTouchUpInside];
}
- (void)click2{
    [self dismissViewControllerAnimated:NO completion:^{
        
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
